package homework.mid_autumn_festival.collection_exercixe;

import java.util.ArrayList;
import java.util.Collection;

public class NewForDemo {
    public static void main(String[] args) {
        String[] arr = {"one","two","three","four","five"};
        for (int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
        for (String str : arr){
            System.out.println(str);
        }

        Collection<String> c = new ArrayList();
        c.add("one");
        c.add("two");
        c.add("three");
        c.add("four");
        c.add("five");
        for (String str : c){
            System.out.println(str);
        }



    }
}
